package com.scores.utils;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Results<T> {
    private String code;
    private String message;
    private T data;
    private int count;

    public Results(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public Results(String code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
